package com.heima.apis.wemedia;

import com.heima.model.wemedia.pojos.WmUser;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;

@Api(value = "自媒体管理", tags = "自媒体管理-WmUser", description = "自媒体管理 API")
public interface WmUserControllerApi {

    //保存自媒体用户
     // 需要主键返回

    @ApiOperation("保存自媒体用户")
    public WmUser save(WmUser wmUser);

    //根据登录名查询当前用户

    @ApiOperation("按照名称查询用户")
    public WmUser findByName(String name);

    //根据id查询自媒体用户
    WmUser findWmUserById(Integer id);
}
